//
//  YMRentFree.swift
//  RentFreeDemo
//
//  Created by youmy on 2018/11/23.
//  Copyright © 2018 youmy. All rights reserved.
//

import Foundation

public struct YMRentFreeModel {
    /// 价格
    public var price : String!
    /// 名称
    public var title : String!
    
    
    /**
     * Instantiate the instance using the passed dictionary values to set the properties values
     */
    public init(fromDictionary dictionary: [String:Any]){
        price = dictionary["price"] as? String
        title = dictionary["title"] as? String
    }
    
    /**
     * Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property
     */
    public func toDictionary() -> [String:Any]
    {
        var dictionary = [String:Any]()
        if price != nil{
            dictionary["price"] = price
        }
        if title != nil{
            dictionary["title"] = title
        }
        return dictionary
    }
    
}
